import axios from '@/modules/service/axios'

interface searchInfoINTF {
  seed: number,
  page: number
}

//HomePage获取留言相关接口
export const randomGetComments = (searchInfo: searchInfoINTF) => axios.get(`/random_get_comments?seed=${searchInfo.seed}&page=${searchInfo.page}`)

export const count = () => axios.get('/count')

export const addComments = (addInfo: string) => axios.get(`create_comment?content=${addInfo}`)

//Admin审核相关接口
export const getCommentList = () => axios.get('get_no_checked_comment')

export const checkOk = (id:any) => axios.get(`batch_check?ids=${id}`)
export const checkFailed = (id:any) => axios.get(`batch_check_failed?ids=${id}`)

